package org.framework.gofun.mongodb.service;

import java.util.List;

import org.springframework.data.mongodb.core.query.Query;

import com.github.pagehelper.PageInfo;


public interface MongoService {

	public long count(Query query, Class<?> entityClass);

	public <T> List<T> find(Query query, Class<T> entityClass);

	public <T> PageInfo<T> findPage(Query query, Integer pageNum, Integer pageSize,
			Class<T> entityClass);


}
